//playLocation keeps track of a location on the main board. 
public class GridLocation 
{
	//location of subGrid (on mainGrid) on which play occurs
	private int mainRow; 
	private int mainCol; 
	
	//location within subGrid 
	private int subRow; 
	private int subCol; 
	
	public GridLocation( int br, int bc, int r, int c )
	{
		mainRow = br;
		mainCol = bc; 
		subRow = r; 
		subCol = c; 
	}
	
	public int getMainRow()
	{
		return mainRow; 
	}
	
	public int getMainCol()
	{
		return mainCol; 
	}
	
	public int getSubRow()
	{
		return subRow;
	}
	
	public int getSubCol()
	{
		return subCol; 
	}
	
	
	@Override
	public boolean equals( Object obj )
	{
		GridLocation other = (GridLocation)obj; 
		return mainRow == other.getMainRow() && mainCol == other.getMainCol() 
				&& subRow == other.getSubRow() && subCol == other.getSubCol(); 
	}
	
	@Override
	public String toString()
	{
		return("("+mainRow+", "+mainCol+", "+subRow+", "+subCol+")");
	}
}
